[#macro spavenav index]
<ul class="nav nav-tabs">
    <li [#if index==1] class="active" [/#if]>
      <a href="${siteurl}space/${model.id}.htm" >最近活动</a>
    </li>
    <li [#if index==2] class="active" [/#if]>
        <a href="${siteurl}space/mypost/${model.id}.htm" >我的帖子</a>
    </li>
    <li [#if index==3] class="active" [/#if]>
     <a href="${siteurl}space/myarticle/${model.id}.htm" >我的文章</a>
    </li>
    <li [#if index==4] class="active" [/#if]>
     <a href="${siteurl}space/fans/${model.id}.htm" >我的粉丝</a>
    </li>
    <li [#if index==5] class="active" [/#if]>
    <a href="${siteurl}space/follow/${model.id}.htm" >我的关注</a>
    </li>
    <li [#if index==6] class="active" [/#if]>
        <a href="${siteurl}space/myquestion/${model.id}.htm" >我的提问</a>
    </li>
</ul>
[/#macro]

[#macro spaveleft]
<div class="box box-primary">
    <div class="box-body box-profile">
        <img class="profile-user-img img-responsive img-circle" src="${model.avatar!'dist/img/user1-128x128.jpg'}" alt="头像">

        <h3 class="profile-username text-center">${(model.name)!""}</h3>

        <p class="text-muted text-center">${(model.job)!""}</p>

        <ul class="list-group list-group-unbordered">
            <li class="list-group-item">
                <b>粉丝</b> <a class="pull-right">${(model.followers)!"0"}</a>
            </li>
            <li class="list-group-item">
                <b>关注</b> <a class="pull-right">${(model.followers)!"0"}</a>
            </li>
            <li class="list-group-item">
                <b>好友</b> <a class="pull-right">${(model.friends)!"0"}</a>
            </li>
        </ul>
        [#if haveFollow]
        <label  class="btn btn-primary btn-block">已关注</label>
        [#else]
        <a href="${siteurl}member/follow.htm?id=${model.id}" class="btn btn-primary btn-block"><b>关注我</b></a>
        [/#if]
    </div>
    <!-- /.box-body -->
</div>
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">关于我</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <strong><i class="fa fa-book margin-r-5"></i> Education</strong>

        <p class="text-muted">
            B.S. in Computer Science from the University of Tennessee at Knoxville
        </p>

        <hr>

        <strong><i class="fa fa-map-marker margin-r-5"></i> Location</strong>

        <p class="text-muted">Malibu, California</p>

        <hr>
        [#if model.labels?? ]
        <strong><i class="fa fa-pencil margin-r-5"></i> 我的标签</strong>

        <p>
            [#list  model.labels as item]
            <span class="label label-info" style="margin-right: 3px;">${item.name!""}</span>
            [/#list]
        </p>
        <hr>
        [/#if]
        <strong><i class="fa fa-file-text-o margin-r-5"></i> 个人介绍</strong>

        <p>${model.note!""}</p>
    </div>
    <!-- /.box-body -->
</div>
[/#macro]